<!-- INCLUDE cms/output/header_body.html -->

<!-- INCLUDE modules/news/admin/output/option_bar_body.html -->

<section class="full-content">
	<article>
		<div class="head">News overview</div>
		<div class="content">
		   	<div class="overview">
				<div class="row heading">
					<div style="width: 300px;">Title</div>
					<div style="width: 100px;">Category</div>
					<div style="width: 70px; text-align:center;">Views</div>
					<div style="width: 70px; text-align:center;">Replies</div>
					<div style="width: 80px; text-align:center;">Read</div>
					<div style="width: 80px; text-align:center;">Edit</div>
					<div style="width: 80px; text-align:center;">Delete</div>
				</div>
				<!-- BEGIN news -->
				<div class="row">
					<div style="width: 300px;">{news.TITLE}</div>
					<div style="width: 100px;">{news.CATEGORY}</div>
					<div style="width: 70px; text-align:center;">{news.VIEWS}</div>
					<div style="width: 70px; text-align:center;">{news.REPLIES}</div>
					<div style="width: 80px; text-align:center;"><a href="{news.READ}"><input type="button" value="Read" /></a></div>
					<div style="width: 80px; text-align:center;"><a href="{news.EDIT}"><input type="button" value="Edit" /></a></div>
					<div style="width: 80px; text-align:center;"><a href="{news.DELETE}"><input type="button" value="Delete" /></a></div>
				</div>
				<!-- END news -->
			</div>
		</div>
	</article>
</section>

<script type="text/javascript">
function edit_news(id)
{
	$('.ajax').load('cms.php?m=news&act=edit&id='+id+'&ajax=true');
}

function delete_news(id)
{
	$('.ajax').load('cms.php?m=news&act=delete&id='+id+'&ajax=true');
}
</script>

<!-- INCLUDE cms/output/footer_body.html -->